package org.qiuqiu.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.qiuqiu.vo.PaginationVO;
import org.qiuqiu.vo.User;
import org.qiuqiu.vo.UserExample;

public interface UserMapper extends BaseDao{
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer userid);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int findByNickName(User user);
    int updateByPrimaryKey(User record);
   User  findBynameAndPassword(User user);
   int findByName(User user);
   List<User> selectPageByAll(@Param("record") PaginationVO page,@Param("user") User user);
}